package constants;

import java.io.File;

/**
 * This class lists the basic maps available
 * with the software.
 * 
 * @author Urbanek Lucas (aka NaG)
 */

public class Maps {
	
	public static File getMap(String name) {
		File mapFile = new File("."+File.separator+
				"maps"+File.separator+
				name+".jpg");
		
		if (mapFile.exists())
			return mapFile;
		
		mapFile = new File(".."+File.separator+
				"maps"+File.separator+
				name+".jpg");
		
		if (mapFile.exists())
			return mapFile;
		
		return null;
	}
	
//	public static final File de_dust2 =
//		new File("."+File.separator+
//				"maps"+File.separator+
//				"de_dust2.jpg");
//	public static final File de_inferno =
//		new File("."+File.separator+
//				"maps"+File.separator+
//				"de_inferno.jpg");
//	public static final File de_nuke =
//		new File("."+File.separator+
//				"maps"+File.separator+
//				"de_nuke.jpg");
//	public static final File de_train =
//		new File("."+File.separator+
//				"maps"+File.separator+
//				"de_train.jpg");
//	public static final File de_cbble =
//		new File("."+File.separator+
//				"maps"+File.separator+
//				"de_cbble.jpg");
}
